package pl.edu.pw.stud.ltrzaska.mvc.view;

public class ViewEvent {
	private ViewEventType type;
	private String description;
	private Object data;
	private Object data2;
	
	public ViewEvent(ViewEventType type, String description, Object o) {
		super();
		this.type = type;
		this.description = description;
		this.data = o;
	}
	
	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public ViewEvent(ViewEventType type, Object o) {
		super();
		this.type = type;
		this.description = "";
		this.data = o;
	}
	
	public ViewEvent(ViewEventType type, Object o, Object o2) {
		super();
		this.type = type;
		this.description = "";
		this.data = o;
		this.setData2(o2);
	}
	
	public ViewEvent(ViewEventType type, String description) {
		super();
		this.type = type;
		this.description = description;
	}
	
	public ViewEvent(ViewEventType type) {
		super();
		this.type = type;
		this.description = "";
	}
	
	public ViewEventType getType() {
		return type;
	}

	public void setEventType(ViewEventType eventType) {
		this.type = eventType;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setData2(Object data2) {
		this.data2 = data2;
	}

	public Object getData2() {
		return data2;
	}
}
